<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="/template/principal.xhtml">
        <ui:define name="conteudo">
            <h:form>
                <p:panel header="Cadastro de Situacao">
                    <p:focus/>
                    <p:messages globalOnly="true"/>
                    <p:tabView >
                        <p:tab title="Dados da Situação" >
                            <h:panelGrid columns="2">
                                <h:outputText value="Descrição:"/>
                                <p:inputText id="descricao" value="#{situacaoestoria.novasitu.descricao}" size="30" maxlength="30" required="true" requiredMessage="Campo Obrigatório"/>
                                <p:message for="descricao"/>
                            </h:panelGrid>
                            <h:panelGrid columns="1">
                                <h:commandButton value="Salvar" action="#{situacaoestoria.salvar}"/>
                            </h:panelGrid>        
                        </p:tab>
                    </p:tabView>
                </p:panel>
            </h:form>
        </ui:define>o
    </ui:composition>
</html>